package com.bbz.crawler.core.commen.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author binbin.a.zhang123
 * @since 2018-05-29
 */
@TableName("crawler_result")
public class CrawlerResult extends Model<CrawlerResult> {

    private static final long serialVersionUID = 1L;

    private Long id;
    private String topic;
    @TableField("page_url")
    private String pageUrl;
    @TableField("element_name")
    private String elementName;
    @TableField("element_class")
    private String elementClass;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public String getPageUrl() {
        return pageUrl;
    }

    public void setPageUrl(String pageUrl) {
        this.pageUrl = pageUrl;
    }

    public String getElementName() {
        return elementName;
    }

    public void setElementName(String elementName) {
        this.elementName = elementName;
    }

    public String getElementClass() {
        return elementClass;
    }

    public void setElementClass(String elementClass) {
        this.elementClass = elementClass;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CrawlerResult{" +
        "id=" + id +
        ", topic=" + topic +
        ", pageUrl=" + pageUrl +
        ", elementName=" + elementName +
        ", elementClass=" + elementClass +
        "}";
    }
}
